import { _decorator, Material, Sprite } from 'cc';
const { ccclass, property } = _decorator;

// 单色sprite，主要是防止引入其它bundle texture资源
@ccclass('ColorSprite')
export class ColorSprite extends Sprite {
	static colorMaterial:Material = null

	start() {
		const material = this.getMaterialInstance(0);

		material.recompileShaders({'USE_TEXTURE':false});
	}

}


